package com.java.Jdbc;

import java.util.Date;

public class Car {
    private int carid;
    private String model;
    private String color;
    private double price;
    private double displacement;
    private Date product_date;

    public Car() {
    }

    public Car(int carid, String model, String color, double price, double displacement, Date product_date) {
        this.carid = carid;
        this.model = model;
        this.color = color;
        this.price = price;
        this.displacement = displacement;
        this.product_date = product_date;
    }

    public int getCarid() {
        return carid;
    }

    public void setCarid(int carid) {
        this.carid = carid;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getDisplacement() {
        return displacement;
    }

    public void setDisplacement(double displacement) {
        this.displacement = displacement;
    }

    public Date getProduct_date() {
        return product_date;
    }

    public void setProduct_date(Date product_date) {
        this.product_date = product_date;
    }

    @Override
    public String toString() {
        return "Car{" +
                "carid=" + carid +
                ", model='" + model + '\'' +
                ", color='" + color + '\'' +
                ", price=" + price +
                ", displacement=" + displacement +
                ", product_date=" + product_date +
                '}';
    }
}
